'use strict';

module.exports = app => {
  const { STRING, DATE,UUID ,TEXT} = app.Sequelize;

  const SysDept = app.model.define('hrbeu_winter', {
    id: { type: UUID, primaryKey: true },//唯一标识
    temp_id: STRING(50),//用户id
    user_id: STRING(50),//用户id
    winp_01:TEXT,//根据pdf依次排列
    winp_02:TEXT,
    winp_03:TEXT,
    winp_04:TEXT,
    winp_05:TEXT,
    winp_06:TEXT,
    winp_07:TEXT,
    winp_08:TEXT,
    winp_09:TEXT,
    winp_10:TEXT,
    winp_11:TEXT,
    create_by: STRING(50),//创建者
    update_by: STRING(50),//更新者
    create_time: DATE,//创建时间
    update_time: DATE,//更新时间
    deleted: STRING(2)//删除标志（0代表存在 1代表删除
  },{
    //防止查询在表名后加s
    freezeTableName:true,
    //是否自动创建create_at
    timestamps:false
  });

  return SysDept;
};